package com.yuhong.reggie.service;

import com.yuhong.reggie.common.R;
import com.yuhong.reggie.entity.Employee;
import com.yuhong.reggie.entity.Page;

public interface EmployeeService {

    //
    R<Employee> login(Employee employee);

    /**
     *
     * @param employee
     * @return true
     */
    boolean save(Employee employee);

    /**
     * 分页查询
     * @param Page
     * @param PageSize
     * @param name
     * @return
     */
    Page<Employee> findByPage(Integer Page, Integer PageSize, String name);

    /**
     * 修改状态
     * @param employee
     * @return
     */
    boolean update(Employee employee);

    /**
     * 根据id
     * @return
     */
    R<Employee> findById(Integer id);
}
